package com.jk1123.us.core;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021-09-02 21:08
 * @description
 */
public interface UrlShortenerGenerator<T extends ShortUrl> {

    /**
     * 将长路径转换为端路径
     * @param url 长url地址
     * @return 返回短url地址
     */
    T generate(String url);
}
